class CreateFeedback < ActiveRecord::Migration
  def change
    create_table :feedbacks do |t|
      t.integer :sender
      t.integer :receiver
      t.string :feedback_type
      t.string :reason
      t.string :order_id

      t.timestamps null: false
    end

    add_index :feedbacks, :sender
    add_index :feedbacks, :receiver
    add_index :feedbacks, :order_id
    add_index :feedbacks, :feedback_type
  end
end
